//
//  HTPlaceView.h
//  TruckDriver
//
//  Created by Ting Han on 2017/9/28.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HTLineCollectionCell.h"

typedef enum : NSUInteger {
    HTPlaceViewTypeStart,//出发地
    HTPlaceViewTypeDestination,//目的地
    HTPlaceViewTypeOther,//其他
} HTPlaceViewType;
typedef void(^BlockCallBack)(void);

@protocol HTPlaceViewDelegate <NSObject>

- (void)didChoiceItemWithModel:(HTAreaModel *)areaModel index:(NSInteger)index PlaceViewType:(HTPlaceViewType)placeType;

@end


@interface HTPlaceView : UIView

@property (nonatomic,assign) HTPlaceViewType placeViewType;
@property (nonatomic,copy) BlockCallBack blockCallBack;

@property (nonatomic,weak) id<HTPlaceViewDelegate>delegate;

@property (nonatomic,strong) NSString *provinceString;
@property (nonatomic,strong) NSString *cityString;

@end
